using System;
using AutoMapper;
using ilgolosone.DomainModel.Entities;
using ilgolosone.UI.Models;

namespace ilgolosone.UI.Mappers
{
    public class MapperRegistry : Profile
    {
        protected override string ProfileName
        {
            get
            {
                return "ilgolosone";
            }
        }

        protected override void Configure()
        {
            AddFormatter<HtmlEncoderFormatter>();
            ForSourceType<DateTime>().AddFormatter<StandardDateFormatter>();
            CreateMap<Specialty, SpecialtyView>();
            CreateMap<Restaurant, RestaurantView>();
            CreateMap<Dish, DishView>();
        }
    }
}